import { Component, OnInit } from '@angular/core';
import { Router } from '../../node_modules/@angular/router';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent  {
  router:Router
    constructor(){
      console.log(document.body.clientWidth);
      
      if(document.body.clientWidth<500){
        window.location.href='/m/'
      }
    }
}
